<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>02_数据代理_vue</title>
</head>
<body>
  <div id="test"></div>
  <script src="./js/vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#test',
      data: {
        msg: 'abc'
      }
    })

    console.log(vm)
    console.log(vm.msg) // abc   // 代理读

    vm.msg  = 'cba'  // 代理写
    console.log(vm._data.msg)


  </script>
</body>
</html>